//
//  Cell.h
//  Game of Life
//
//  Created by James Durkee on 5/12/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface Cell : NSObject {
	int col;
	int row;
	BOOL isAlive;
	BOOL nextState;
	int ncount;
	
	NSRect bounds;
}
+ (Cell *)cellWithRow:(int)r Col:(int)c;

- (NSRect)bounds;
- (void)setBounds:(NSRect)b;

- (void)setCol:(int)c;
- (void)setRow:(int)r;
- (void)setRow:(int)r Col:(int)c;
- (void)setNcount:(int) n;
- (void)setNextState:(BOOL)s;

- (int)row;
- (int)col;
- (int)ncount;

- (void)toggleAlive;
- (void)setAlive:(BOOL)b;
- (BOOL)isAlive;
- (BOOL)nextState;
- (void)determineNextState;
- (void)setAliveToNextState;

@end
